package com.hp.appfw.service.cust;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hp.appfw.data.mapper.mygen.MsUserTerminalMapper;
import com.hp.appfw.data.mode.mygen.MsUserTerminal;
import com.hp.appfw.data.mode.mygen.MsUserTerminalExample;


@Service("msUserTerminalService")
public class MsUserTerminalService {

	
	@Resource
	private MsUserTerminalMapper mapper;
	
	public List<MsUserTerminal> selectTerminalByUser(String userId)
	{
		MsUserTerminalExample example = new MsUserTerminalExample();
		example.createCriteria().andUserIdEqualTo(userId).andIsDeletedEqualTo("0");
		return mapper.selectByExample(example);
	}
}
